package org.cip.esymons.general.util;

import java.io.File;
import java.util.EventObject;

public class CopyEvent extends EventObject{

    private File current ;
    private File newFile ;
    private long lengthCopy ;
    private long progressCopy ;
    private long lengthCurrent ;
    private long progressCurrent ;

    public CopyEvent(CopyCommand source, File current, File newFile,
            long lengthCopy, long progressCopy, long lengthCurrent,
            long progressCurrent) {
        super(source);
        this.current = current ;
        this.newFile = newFile ;
        this.lengthCopy = lengthCopy ;
        this.progressCopy = progressCopy ;
        this.lengthCurrent = lengthCurrent ;
        this.progressCurrent = progressCurrent ;
    }

    public File getCurrent() {
        return current;
    }

    public File getNewFile() {
        return newFile;
    }

    public long getLengthCopy() {
        return lengthCopy;
    }

    public long getProgressCopy() {
        return progressCopy;
    }

    public long getLengthCurrent() {
        return lengthCurrent;
    }

    public long getProgressCurrent() {
        return progressCurrent;
    }

    @Override
    public CopyCommand getSource() {
        return (CopyCommand)super.getSource();
    }
    
}
